package cn.iocoder.yudao.module.erp.enums.exchange;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * ERP 兑换项类型枚举
 */
@RequiredArgsConstructor
@Getter
public enum ErpExchangeItemTypeEnum implements ArrayValuable<Integer> {

    OLD_MATERIAL(1, "旧料"),
    EXCHANGE_PRODUCT(2, "兑换产品"),
    ;

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(ErpExchangeItemTypeEnum::getType).toArray(Integer[]::new);

    /**
     * 类型
     */
    private final Integer type;
    /**
     * 名称
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }
} 